//
//  MVPPresenter.h
//  Demo_MVP
//
//  Created by 陈冰 on 2020/3/8.
//  Copyright © 2020 ChenBing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MVPTableViewCell.h"

NS_ASSUME_NONNULL_BEGIN

@protocol MVPPresenterDelegate <NSObject>

@optional
// 刷新UI  ---> tableView VC
- (void)reloadDataForIndexPath:(NSIndexPath *)indexPath;

@end

/// 双向协议绑定者---对外提供方法
/// 需要响应UI回调---实现外部方法
@interface MVPPresenter : NSObject <MVPTableViewCellDelegate>

@property (nonatomic, strong) NSMutableArray *dataArray;
@property (nonatomic, weak) id <MVPPresenterDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
